package TMS.src;

import java.util.HashMap;
import java.util.Map;

public class Const {
    static boolean logged_in = false;
    static User current_user = null;
    //存储用户信息
    static Map<String, User> user_existed = new HashMap<>();//card_number+User信息

    //存储商家+名下商店信息
    static Map<String, HashMap<String, Shop>> masterShop_existed = new HashMap<>();//card_number+shopId+Shop信息
    //所有商店
    static Map<String, Shop> allShop_existed = new HashMap<>();//shopId+Shop

    //未下架所有货物(三参数)
    static Map<String, Commodity> allCommodities_existed = new HashMap<>();//(shopId+commodityId)+Commodity
    //未封禁所有货物（两参数remove）-->保留commodityId
    static Map<String, Commodity> existed_commodities = new HashMap<>();//commodityId+Commodity;

    //全局所有Order
    static Map<String,Order>allOrder_existed = new HashMap<>();//orderId+Order

    //所有顾客的收藏清单
    static Map<String, FavList>allFavList_existed=new HashMap<>();//card_number+favList
}







